package org.bees.cms.web.action.content;

import javax.annotation.Resource;

import org.bees.cms.core.content.Article;
import org.bees.cms.service.Service;
import org.bees.cms.service.content.ArticleService;
import org.bees.cms.web.action.EditActionSupport;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Scope("prototype")
@Controller
public class ArticleEditAction extends EditActionSupport<Article> {
	@Resource
	private ArticleService articleServiceBean;

	@Override
	public Service<Article> service() {
		return articleServiceBean;
	}

	@Override
	public Article getDomain() {
		return domain;
	}

	@Override
	public void setDomain(Article domain) {
		this.domain = domain;
	}
}
